package com.fitns.user.utils;

public class RandomCodeUtils {

public static String getRandomCode(int length){
		//随机生成6位验证码
		int[] arr={0,1,2,3,4,5,6,7,8,9};
		String randomCode="";
		for(int i=0;i<=length-1;i++){
			int random=(int) (Math.random()*10);
			randomCode+=arr[random];
		}
		return randomCode;
	}
}